import axios from '@/libs/request/axios'
// 获取放款规则配置数据
export const getLoanReviewRuleList = (params) => {
    return axios.request({
        url: `/case/loanReviewRule/getReviewRuleList`,
        data: params,
        method: 'post'
    })
}
// 添加放款激活规则
export const addRule = (params) => {
    return axios.request({
        url: `/case/loanReviewRule/addRule`,
        data:params,
        method: 'post'
    })
}

// 编辑放款激活规则
export const editRule = (params) => {
    return axios.request({
        url: `/case/loanReviewRule/editRule`,
        data:params,
        method: 'post'
    })
}

// 删除放款激活规则
export const delByIds = (ids,params) => {
    return axios.request({
        url:`/case/loanReviewRule/delByIds/${ids}`,
        params:params,
        method: 'delete'
    })
}

// 启用放款激活规则
export const openRuleById = (id,params) => {
    return axios.request({
        url:`/case/loanReviewRule/openRuleById/${id}`,
        params:params,
        method: 'post'
    })
}

// 停用放款激活规则
export const closeRuleById = (id,params) => {
    return axios.request({
        url:`/case/loanReviewRule/closeRuleById/${id}`,
        params:params,
        method: 'post'
    })
}

// 更新
export const updateRuleId = (params) => {
    return axios.request({
        url: `/case/loanReviewRule/updateRuleId`,
        data:params,
        method: 'post'
    })
}
